#ifndef QPOLYGONWIDGET_H
#define QPOLYGONWIDGET_H

#include "qabstractgraphics.h"

#include <QWidget>

class QPolygonWidget : public QAbstractGraphicsWidget
{
    Q_OBJECT
public:
    explicit QPolygonWidget(QWidget *parent = 0);
protected:
    void    paintEvent(QPaintEvent *);
};

class QPolygonWidgetHost : public QAbstractGraphicsHost
{
    Q_OBJECT
public:
    Q_INVOKABLE QPolygonWidgetHost(QAbstractHost *parent = 0);

    static QString get_show_name();
    static QString get_show_icon();
    static QString get_show_group();

public slots:
protected:
    void    init_property();
protected:
    void    create_object();
};

#endif // QPOLYGONWIDGET_H
